<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>

 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
    <form action="{:U('Emp/change')}" method="post" class="definewidth m20" onsubmit="return sure();">
    <table class="table table-bordered table-hover definewidth m10">
<!--        <tr>
            <td width="10%" class="tableleft">原密码</td>
            <td><input type="password" name="old" id="old"/><span>原密码不正确</span></td>
        </tr>-->
        <tr>
            <td width="10%" class="tableleft">新密码</td>
            <td><input type="password" name="password" id="password"/></td>
        </tr>
        <tr>
            <td class="tableleft">确认密码</td>
            <td><input type="password" name="repass" id="repass"/></td>
        </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="submit" class="btn btn-primary" type="button">修改</button>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
<script>
    function sure(){
        var password = $('#password').val();
        if(!password){
            alert('密码不能为空');
            return false;
        }
        var repass = $('#repass').val();
        if(password != repass){
            alert('两次密码不一致');
            $('#password').val('');
            $('#repass').val('');
            return false;
        }
    }
</script>